package com.yz.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
public class LogSheet {

    private int id;
    private String operator;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operationDate;
    private String operationMethod;
    private String operationResult;
    private String methodName;

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public int getId() {
        return id;
    }

    public LogSheet setId(int id) {
        this.id = id;
        return this;
    }

    public String getOperator() {
        return operator;
    }

    public LogSheet setOperator(String operator) {
        this.operator = operator;
        return this;
    }

    public Date getOperationDate() {
        return operationDate;
    }

    public LogSheet setOperationDate(Date operationDate) {
        this.operationDate = operationDate;
        return this;
    }

    public String getOperationMethod() {
        return operationMethod;
    }

    public LogSheet setOperationMethod(String operationMethod) {
        this.operationMethod = operationMethod;
        return this;
    }

    public String getOperationResult() {
        return operationResult;
    }

    public LogSheet setOperationResult(String operationResult) {
        this.operationResult = operationResult;
        return this;
    }
}
